# MySQL数据库配置
mysql_config = {
    'host': 'localhost',
    'user': 'root',
    'passwd': '123456',
    'database': 'premade_food_trace'
}

# 数据库配置
DB_CONFIG = {
    'host': 'localhost',
    'user': 'root',
    'password': '123456',
    'database': 'premade_food_trace'
}

# JWT配置
JWT_SECRET_KEY = 'your-secret-key-here'
JWT_ACCESS_TOKEN_EXPIRES = 3600  # 1小时

# 文件上传配置
UPLOAD_FOLDER = 'data/uploads'
ALLOWED_EXTENSIONS = {'xlsx', 'xls'}
MAX_CONTENT_LENGTH = 16 * 1024 * 1024  # 16MB 

# 新增区块链节点配置
BLOCKCHAIN_CONFIG = {
    'nodes': [
        'http://localhost:5001',
        'http://localhost:5002'
    ],
    'sync_timeout': 3  # 节点同步超时时间
}